// import LayoutVue from '@/components/Layout.vue';

import { RouteRecordRaw } from 'vue-router';
// import Layout from '@/components/Layout.vue';
export const menus: RouteRecordRaw[] = [
  {
    path: 'product',
    name: '产品',
    component: () => import('@/views/menus/Products.vue'),
    meta: { title: '产品', icon: 'GoodsFilled' },
  },
  {
    path: 'qrcode',
    name: '二维码',
    component: () => import('@/views/menus/QRCode.vue'),
    meta: { title: '二维码', icon: 'Grid' },
  },
  {
    path: 'accountmanagement',
    name: '账户管理',
    redirect: { name: '个人中心' },
    // component: () => import('@/components/Layout.vue'),
    meta: { title: '账号管理', icon: 'Avatar' },
    children: [
      {
        path: 'usercenter',
        name: '个人中心',
        component: () =>
          import('@/views/menus/accountmanagement/UserCenter.vue'),
      },
      {
        path: 'EnterpriseInformation',
        name: '企业信息',
        component: () =>
          import('@/views/menus/accountmanagement/EnterpriseInformation.vue'),
      },
      {
        path: 'addressmanagement',
        name: '地址管理',
        component: () =>
          import('@/views/menus/accountmanagement/AddressManagement.vue'),
      },
      {
        path: 'certification',
        name: '认证页面',
        component: () =>
          import('@/views/menus/accountmanagement/Certification.vue'),
      },
    ],
  },
  // {
  //   path: 'settings/system-config',
  //   name: '系统配置',
  //   component: () => import('@/views/menus/setting/SystemConfig.vue'),
  // },
  // {
  //   path: 'settings/permission-management/:path(role-management)?',
  //   name: '身份管理',
  //   component: () =>
  //     import('@/views/menus/setting/permission-management/Role.vue'),
  //
  // },
  // {
  //   path: 'settings/permission-management/Menu',
  //   name: '菜单管理',
  //   component: () =>
  //     import('@/views/menus/setting/permission-management/Menus.vue'),
  //
  // },
  {
    path: 'settings',
    name: '设置',
    // component: Layout,
    meta: { title: '设置', icon: 'setting' },
    redirect: 'system-config',
    children: [
      {
        path: 'system-config',
        name: '系统配置',
        component: () => import('@/views/menus/setting/SystemConfig.vue'),
      },
      {
        path: 'users',
        name: '用户管理',
        component: () => import('@/views/menus/setting/Users.vue'),
      },
      {
        path: 'permission-management',
        name: '权限管理',
        // component: Layout,
        redirect: 'permission-management/role-management',
        children: [
          {
            path: 'role-management',
            name: '身份管理',
            component: () =>
              import('@/views/menus/setting/permission-management/Role.vue'),
          },
          {
            path: 'Menu',
            name: '菜单管理',
            component: () =>
              import('@/views/menus/setting/permission-management/Menus.vue'),
          },
        ],
      },
    ],
  },
  /* {
    path: 'setting',
    name: '设置',
    component: LayoutVue,
    meta: { title: '设置', icon: 'setting' },
    redirect: 'setting/system-config',
    children: [
      {
        path: 'system-config',
        name: '系统配置',
        component: () => import('@/views/menus/setting/SystemConfig.vue'),
      },
      {
        path: 'permission-management',
        name: '权限管理',
        component: LayoutVue,
        redirect: 'role-management',

        children: [
          {
            path: 'role-management',
            name: '身份管理',
            component: () =>
              import('@/views/menus/setting/permission-management/Role.vue'),

          },
          {
            path: 'Menu',
            name: '菜单管理',
            component: () =>
              import('@/views/menus/setting/permission-management/Menus.vue'),

          },
        ],

      },
    ],

  },

  {
    path: 'maintenance',
    name: '维护',
    component: LayoutVue,
    meta: { title: '维护', icon: 'Stamp' },
  }, */
];
